'''
Created on 2009-11-11

@author: Jialai_Zhu
'''

class localdb(object):
    '''
    classdocs
    '''

    def add(self,url):
        self.local_url.append(url)
    def __init__(self):
        '''
        Constructor
        '''
        self.local_url=[]
        self.add('http://8889.ss.la')
    def in_local(self,aUrl):
        for x in self.local_url:
            if x==aUrl:
                return 1
        return 0         